/*
 * Copyright 2014 Semidata. All rights reserved.
 */
package com.semidata.trp.report.data;

/**
 * @author shewei@semidata.com, She Wei
 * 
 */
public class ReportEntity {

	private int pv;
	private int uv;
	private int click;
	private double cost;

	public int getPv() {
		return pv;
	}

	public void setPv(int pv) {
		this.pv = pv;
	}

	public int getUv() {
		return uv;
	}

	public void setUv(int uv) {
		this.uv = uv;
	}

	public int getClick() {
		return click;
	}

	public void setClick(int click) {
		this.click = click;
	}

	public double getCost() {
		return cost;
	}

	public void setCost(double cost) {
		this.cost = cost;
	}

	public void merge(ReportEntity entity) {
		pv += entity.pv;
		uv += entity.uv;
		click += entity.click;
		cost += entity.cost;

	}

	public void increasePv(int value) {
		pv += value;
	}

	public void increaseUv(int value) {
		uv += value;
	}

	public void increaseCost(double value) {
		cost += value;
	}

	public void increaseClick(int value) {
		click += value;
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(pv).append(':').append(uv).append(':').append(click).append(':').append(cost).append(';');
		return sb.toString();
	}

}
